
var Session = function() {
	this.class = 'Session';
	this.id = "";
	this.uname = "";
	this.moderator = false;
	
};

Session.prototype.toXML = function() {
//	<signInRequest id="alkj3ksjd">
//		<user name="Abraham Lincoln"/>
//	</signInRequest>
	
	var xml = '<signInRequest id="' + this.id + '">'
		+ '<user name="' + this.name + '"/>'
		+ '</signInRequest>';
	
	return xml;
};

Session.fromXML = function(xml) {
//	<signInResponse id="asdklj23" type="open" question="where to eat?" numChoices="4" numRounds="3" position="4">
//		<!-- All choices for this event -->
//		<choice value="McDonald's" index="1"/>
//		<choice value="Wendy's" index="2"/>
//		<choice value="Burger King" index="3"/>
//	</signInResponse>
	
	xml = xml.replace(/\r\n|\n/g, ''); // remove line breaks
	
};

module.exports = Session;
